﻿<%@ Page Title="" Language="C#" Theme = "DetailsView" MasterPageFile="~/Managers.master" AutoEventWireup="true" CodeFile="MLeaveLeave.aspx.cs" Inherits="MLeaveLeave" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DetailsView 
         ID = "dtlLeave"
         SkinID = "Colorful"
         DataSourceID = "srcLeaveUnleave"
         AllowPaging = "true"
         AutoGenerateRows = "false"
         EmptyDataText = "无"
         HeaderText = "学生请假的历史记录"
         runat = "server" >
         <Fields>
         <asp:BoundField 
             DataField = "sid"
             HeaderText = "学号" />
         <asp:BoundField 
             DataField = "sname"
             HeaderText = "姓名" />
         <asp:BoundField 
             DataField = "b_n"
             HeaderText = "楼房" />
         <asp:BoundField 
             DataField = "d_n"
             HeaderText = "宿舍号" />
         <asp:BoundField 
             DataField = "reasons"
             HeaderText = "原因" /> 
         <asp:BoundField 
             DataField = "leavetime"
             HeaderText = "请假日期" />
         <asp:BoundField 
             DataField = "leavedays"
             HeaderText = "请假天数" />               
         </Fields>
    </asp:DetailsView>
    <asp:SqlDataSource 
         ID = "srcLeaveUnleave"
         ConnectionString = "<%$ConnectionStrings:Dormitory %>"
         SelectCommand = "select *from leaveapplication where leave = 'true'"
         runat = "server" ></asp:SqlDataSource>
</asp:Content>

